package com.jsbs.iam.auth.service.impl;

import com.jsbs.iam.auth.mapper.IamRoleMapper;
import com.jsbs.iam.auth.service.IamRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhouxiangyang
 * @className RoleServiceImpl
 * @date 2022/12/15 16:29
 * @description:
 */
@Service
public class RoleServiceImpl implements IamRoleService {

    @Autowired
    private IamRoleMapper iamRoleMapper;

    @Override
    public List<String> getApplyCodeList(String userCode) {
        //根据角色编码查询应用编码
        List<String> applyCodeList = iamRoleMapper.getApplyCodeList(userCode);
        return applyCodeList;
    }
}
